import os
import sys
from distutils.core import Extension, setup

# build the module
os.chdir(os.path.dirname(os.path.abspath(__file__)))
sys.argv = [sys.argv[0], 'build_ext', '-i']

setup( name = 'pyCan',
       version = '1.0',
       description = 'Can interface to the CAN input',
       ext_modules = [Extension('pyCan', 
                                sources = ['module/pyCan.cpp'])])

# display the main dialog
from interface.dashboard import DashboardDialog
dialog = DashboardDialog()
dialog.main()